<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>后台用户管理-<?php echo (C("cms_name")); ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel='stylesheet' type='text/css' href='__PUBLIC__/Admin/css/admin_style.css' />
	<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/function.js"></script>
	<script charset="utf-8" src="__PUBLIC__/vendor/datepicker/WdatePicker.js"></script>
	<style>td{ height:22px; line-height:22px}</style>
</head>
<body>
	<table width="98%" border="0" cellpadding="9" cellspacing="1" class="table">
		<tr>
			<td colspan="11" class="table_title">
				<span class="fl">团管理</span>
				<span class="fr">
					<!--<a href="<?php echo U('Goods/add');?>">添加物品</a>-->
				</span>

			</td>
			</tr>

			<tr class="list_head ct">
				<td width="70">ID</td>
				<td width="70">需要人数</td>
				<td width="70">当前人数</td>
				<td width="100">团长</td>
				<td >创建时间</td>
				<td >过期时间</td>
				<td >成功时间</td>
				<td width="70">状态</td>
				<td >管理操作</td>
			</tr>
	    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class='tr'>
				<td align='center'><?php echo ($vo["group_order_id"]); ?></td>
				<td ><?php echo ($vo["require_num"]); ?>人</td>
				<td ><?php echo ($vo["people"]); ?>人</td>
				<td ><?php echo ($vo["nickname"]); ?></td>
				<td align='center'><?php echo (date('Y-m-d H:i:s',$vo["create_time"])); ?></td>
				<td align='center'><?php echo (date('Y-m-d H:i:s',$vo["expire_time"])); ?></td>
				<td align='center'>
					<?php echo (date('Y-m-d H:i:s',($vo["success_time"])?($vo["success_time"]):'--')); ?>
				</td>
				<td align='center'>
					
					<?php switch($vo["status"]): case "0": ?>团购进行中<?php break;?>
					 <?php case "1": ?><span style="color:red;">团购成功</span><?php break;?>
					 <?php case "2": ?><span style="color:blue;">团购失败</span><?php break;?>
					 <?php default: ?>未知<?php endswitch;?>

				</td>

				
				
				<td align='center'>
					<a href="<?php echo U('Group/edit/',array('id'=>$vo['group_order_id']));?>">查看</a>
					<!--|<a href="javascript:void(0)" onclick="return confirmurl('<?php echo U('Goods/del/',array('id'=>$vo['goods_id']));?>','确定删除该商品吗？')">删除</a>-->
				</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		<tr class="tr">
          <td colspan="11" class="pages">
            <?php echo ($page); ?>
          </td>
        </tr>
		</table>
		<script>var version='<?php echo (C("cms_var")); ?>';</script>
		<style>
#footer, #footer a:link, #footer a:visited {
	clear:both;
	color:#0072e3;
	font:12px/1.5 Arial;
	margin-top:10px;
	text-align:center;
	white-space:nowrap;
}
</style>
<div id="footer">程序版本：<?php echo (C("cms_var")); ?>&nbsp;&nbsp;&nbsp;&nbsp;Copyright © 2017-2022 All rights reserved</div>
</body>
	</html>